package com.itany.controller;


import com.alibaba.dubbo.config.annotation.Reference;
import com.itany.api.IExamineService;
import com.itany.api.IUserService;
import com.itany.common.User;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/test")
public class TestController {

    @Reference
    private IUserService userService;


    @RequestMapping("/addUser")
    @ResponseBody
    public String addUser(User user){
        userService.addUser(user);
        return "success";
    }


}
